<?php
/**
 * Created by PhpStorm.
 * User: zjw
 * Date: 2018/3/3
 * Time: 下午8:41
 */

namespace common\helpers\sms;

class Sms
{
    const FROM_SYSTEM_TYPE = 'Lianluo';
    const REGION_CODE_USA = 'USA';
    const REGION_CODE_CHINA = 'CHN';

    public static function send($mobile, $dataVariables, $template = '000012')
    {

        $helper = new SignatureHelper();
        return $content = $helper->request(
            $mobile,
            $template,
            $dataVariables
        );
    }


    public static function getCacheKey($mobile)
    {
        return str_replace("\\", '-', __METHOD__) . '-' . $mobile;
    }
}
